home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Example / EdApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-22  |  2.2 KB  |  69 lines  |  [TEXT/MPS ]

  1. #ifndef EDAPP_H
  2. #define EDAPP_H
  3. //===================================================================================
  4. //
  5. //     File:            EdApp.h
  6. //     Release Version:    $Revision$
  7. //
  8. //     COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED RIGHTS
  9. //     RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT
  10. //     NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  11. //
  12. //     THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  13. //     CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  14. //     EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  15. //
  16. //     RESTRICTED RIGHTS LEGEND
  17. //     Use, duplication, or disclosure by the Government is subject to restrictions
  18. //     as set forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and
  19. //     Computer Software clause at DFARS 252.227-7013.
  20. //     Symantec Corporation, 10201 Torre Avenue, Cupertino, CA 95014.
  21. //
  22. //===================================================================================
  23.  
  24. #ifndef BRAPPLIC_H
  25. #include <BRApplic.h>
  26. #endif
  27.  
  28. class cEdStatusBar;
  29. class BR_CTimerChore;
  30.  
  31. //-----------------------------------------------------------------------------------
  32. // cEditApp
  33. //
  34. // This is the application class for the Bedrock Text Editor
  35. //-----------------------------------------------------------------------------------
  36.  
  37. class cEditApp : public BR_CApplication
  38. {
  39. public:
  40.                                cEditApp(BR_CSystem *system);
  41.     virtual                     ~cEditApp();
  42.  
  43.     // Overridden virtual methods
  44.     virtual BR_CAppDesktop*    MakeAppDesktop();
  45.     virtual void                UpdateMenus(BR_CMenuBar &menuBar,
  46.                                         BR_Boolean fCallSupervisor);
  47.     virtual BR_Boolean          DoCommand(CommandId cmdId,
  48.                                       BR_CObject *notifier,
  49.                                         BR_Boolean fCallSupervisor);
  50.     virtual BR_CDocument*    CreateDocument();
  51.     virtual BR_CDocument*    OpenDocument(BR_CFileSpecification &fileSpec);
  52.     virtual BR_Boolean          ShowHelpStatusString(const BR_TString<BR_Char>& helpStatusString);
  53.  
  54.     // Non-virtual methods
  55.     cEdStatusBar*            GetStatusBar();
  56.  
  57. private:
  58.     void                     DoAboutBox();
  59.  
  60. #ifdef BR_BUILD_WIN
  61. private:
  62.     cEdStatusBar            *fWinEdStatusBar;
  63.     BR_CTimerChore            *fWinTimerChore;
  64. #endif
  65.                             BR_SETCLASSNAME(cEditApp);
  66. };
  67.  
  68. #endif
  69.